#pragma once
#ifndef PARSERWINDOW_H
#define PARSERWINDOW_H

#include <QDialog>
#include "ui_ParserWindow.h"
#include "Parser.h"
#include "../storage/Storage.h"
#include <boost/noncopyable.hpp>


namespace LightChart {
class ParserWindow : public QDialog, public boost::noncopyable, private Ui_ParserWindow
{
    Q_OBJECT
public:
    ParserWindow(QWidget *parent);
    void setupUi(QWidget *parent) { Ui_ParserWindow::setupUi(parent); } //workaround - must be public
    void setOkToContinue(bool value) { okToContinue = value; }
signals:
    void onFinishClicked();
private slots:
    void browse();
    void onFileChange();
    void onButtonLoadClick();
    void onButtonFinishClick();

private:
    void setupConnections();
    void reset();
    InputParser parser;
    bool okToContinue;
    Storage* storage;
};
}
#endif // PARSERWINDOW_H
